package com.hjw.weixun.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author henry_chen date 2010-8-3 实体类
 * 
 */

public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1593460925978339156L;
	/**
	 * 
	 */
	private Integer userid;
	private String username;
	private String password;
	private Integer weixunid1;
	private Integer weixunid2;
	private Integer weixunid3;
	private String userpic;
	
	private Weixun currentWeixun;


	private Set<Message> message = new HashSet<Message>();

	private Set<Follower> follower = new HashSet<Follower>();

	// 空的构造方法
	public User() {

	}

	// 带参数的构造方法
	public User(Integer userid, String passwrod) {
		this.userid = userid;
		this.password = passwrod;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set<Message> getMessage() {
		return message;
	}

	public Set<Follower> getFollower() {
		return follower;
	}

	public void setFollower(Set<Follower> follower) {
		this.follower = follower;
	}

	public void setMessage(Set<Message> message) {
		this.message = message;
	}

	public void addFollower(Follower follower) {
		if (this.getFollower() == null) {
			this.setFollower(new HashSet<Follower>());
		}
	}

	public void addMessage(Integer messageId) {
		if (this.getMessage() == null) {
			this.setMessage(new HashSet<Message>());
		}
	}

	public Integer getWeixunid1() {
		return weixunid1;
	}

	public void setWeixunid1(Integer weixunid1) {
		this.weixunid1 = weixunid1;
	}

	public Integer getWeixunid2() {
		return weixunid2;
	}

	public void setWeixunid2(Integer weixunid2) {
		this.weixunid2 = weixunid2;
	}

	public Integer getWeixunid3() {
		return weixunid3;
	}

	public void setWeixunid3(Integer weixunid3) {
		this.weixunid3 = weixunid3;
	}

	public Weixun getCurrentWeixun() {
		return currentWeixun;
	}

	public void setCurrentWeixun(Weixun currentWeixun) {
		this.currentWeixun = currentWeixun;
	}

	public String getUserpic() {
		return userpic;
	}

	public void setUserpic(String userpic) {
		this.userpic = userpic;
	}
	
	


	
}
